 public class person {
private String name;
 private String gender;
 private int age; // 改为int类型

         public person(String name, String gender, int age) {
 this.name = name;
this.gender = gender;
 this.age = age;
}

         public person() {
 this.name = "ouya";
this.age = 20; // 直接使用数字
 this.gender = "male";
 }

        public void show() {
System.out.println("name:" + name + ", gender:" + gender + ", age:" + age);
}
}